import random

player = int(input('请输入：剪刀(0)  石头(1)  布(2):'))
computer = random.randint(0,2)

if ((player == 0) and (computer == 2)) or ((player ==1) and (computer == 0)) or ((player == 2) and (computer == 1)):
    message = '获胜，你太厉害了'
elif player == computer:
    message = '平局，要不再来一局'
else:
    message = '输了，不要走，洗洗手接着来'

print('你输入的是'+ str(player) + ',电脑输入的是' + str(computer))
print(message)